package shorturl.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;
import shorturl.base.IShorterEntity;

/**
 * 附带密码的短链接实体类
 */
@Data
@Accessors(chain = true)
@AllArgsConstructor
public class ShorterWithPassword implements IShorterEntity {

    /**
     * 短链接字符串
     */
    private String shorterString;

    /**
     * 原始链接
     */
    private String url;

    /**
     * 密码
     */
    private String password;

    @Override
    public boolean verify() {
        return true;
    }
}
